//
//  ViewController.m
//  OC
//
//  Created by apple on 16/2/21.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
//    UIView *view = [[UIView alloc]init];
//    
////    [view setBackgroundColor:<#(UIColor * _Nullable)#>]
//    UIButton *buttonn = [UIButton buttonWithType:(UIButtonType)]
    
    int num = 5;
    
//    if (num == 5)
//        NSLog(@"num = 5");
//    
//    if (num) {
//        NSLog(@"真");
//    }

    
    switch (num) {
        case 5:
            NSLog(@"num = 5");
            break;
            
            case 6:
            NSLog(@"num = 6");
            
            //是可以省略的
        default:
            break;
    }
    
//    [NSString stringWithFormat:<#(nonnull NSString *), ...#>]
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
